package cn.edu.sgu.www.mhxysy.service.jingmai.impl;

import cn.edu.sgu.www.mhxysy.entity.jingmai.StarStoneCategory;
import cn.edu.sgu.www.mhxysy.mapper.jingmai.StarStoneCategoryMapper;
import cn.edu.sgu.www.mhxysy.service.jingmai.StarStoneCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class StarStoneCategoryServiceImpl implements StarStoneCategoryService {

    private final StarStoneCategoryMapper starStoneCategoryMapper;

    @Autowired
    public StarStoneCategoryServiceImpl(StarStoneCategoryMapper starStoneCategoryMapper) {
        this.starStoneCategoryMapper = starStoneCategoryMapper;
    }

    @Override
    public List<StarStoneCategory> selectAll() {
        return starStoneCategoryMapper.selectList(null);
    }

    @Override
    public StarStoneCategory selectById(Integer id) {
        return starStoneCategoryMapper.selectById(id);
    }

}